import ToolApis from "@/tool/http/ToolApis.js";

const rule = {
	queryParams: [],
	formOnChange: (watchForm) => {
		return [];
	},
	pageConfig: {},
	metaConfig: {}
}

export default async function(metadata) {
	let res = await ToolApis.taskList();
	rule.metaConfig.task_code = {
		dictList: res.list.map(item => ({ name: item.name, val: item.taskCode }))
	}
	return rule;
}
